home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 June: ROMin Holiday / ADC Developer CD (1992-06) (''ROMin Holiday'')_iso / Developer Connection - 06-1992.iso / Developer Essentials / MPW Interfaces & Libraries / AIncludes / SysErr.a < prev    next >
Encoding:
Text File  |  1992-01-29  |  36.5 KB  |  704 lines  |  [TEXT/MPS ]

  1. ; Version: 3.26
  2. ; Created: Friday, October 20, 1989 at 9:59:48 PM
  3. ;
  4. ; File:SysErr.a
  5. ;
  6. ; Assembler Interface to the Macintosh Libraries
  7. ; Copyright Apple Computer, Inc. 1984-1991
  8. ; All Rights Reserved
  9. ;
  10. ; System Error Equates -- This file defines the equates for the Macintosh
  11. ; return error codes This is divided into two pieces for assembly
  12. ; space and speed considerations. The wholeErrors flag is used to include
  13. ; the less common equates which realizes a complete set.
  14. ;___________________________________________________________________________
  15.  
  16.     IF &TYPE('__IncludingSysErr__') = 'UNDEFINED' THEN
  17. __IncludingSysErr__    SET    1
  18.  
  19.                   IF          (&TYPE('wholeErrors') = 'UNDEFINED') THEN
  20. wholeErrors       EQU         0
  21.                   ENDIF
  22.  
  23. noErr             EQU         0                         ; success
  24.  
  25. ;__________________________________________________
  26. ; general errors
  27.  
  28. paramErr        EQU         -50                     ; bad parameter passed
  29. noHardwareErr     EQU         -200                      ; missing the hardware to do this
  30. notEnoughHardwareErr EQU      -201                      ; inadequate hardware to do this
  31. userCanceledErr   EQU         -128                      ; user canceled the operation status
  32.  
  33. ;__________________________________________________
  34. ; VBL Mgr, queueing, etc.
  35.  
  36. qErr              EQU         -1                        ; queue element not found during deletion
  37. vTypErr           EQU         -2                        ; invalid queue element
  38. corErr            EQU         -3                        ; core routine number out of range
  39. unimpErr          EQU         -4                        ; unimplemented core routine
  40. SlpTypeErr        EQU         -5                        ; invalid queue element
  41. seNoDB            EQU         -8                        ; no debugger installed to handle debugger command
  42.  
  43. ;__________________________________________________
  44. ; Device Manager errors
  45.  
  46. controlErr        EQU         -17                       ; driver can’t respond to Control call / Unimplemented control instruction
  47. statusErr         EQU         -18                       ; driver can’t respond to Status call
  48. readErr           EQU         -19                       ; driver can’t respond to Read call
  49. writErr           EQU         -20                       ; driver can’t respond to Write call
  50. badUnitErr        EQU         -21                       ; driver reference number doesn’t match unit table
  51. unitEmptyErr      EQU         -22                       ; driver reference number specifies NIL handle in unit table
  52. openErr           EQU         -23                       ; requested read/write permission doesn’t match driver’s open permission / Attempt to open RAM serial Driver failed
  53. closErr           EQU         -24                       ; close error
  54. dRemovErr         EQU         -25                       ; tried to remove an open driver
  55. dInstErr          EQU         -26                       ; DrvrInstall couldn’t find driver in resources
  56. abortErr          EQU         -27                       ; I/O request aborted by KillIO / I/O abort error
  57. iIOAbortErr       EQU         -27                       ; I/O abort error (Printing Manager)
  58. notOpenErr        EQU         -28                       ; Couldn’t rd/wr/ctl/sts cause driver not opened
  59. unitTblFullErr    EQU         -29                       ; unit table has no more entries
  60. dceExtErr         EQU         -30                       ; DCE extension error
  61.  
  62. ; slot support
  63.  
  64. slotNumErr        EQU         -360                      ; invalid slot # error
  65. gcrOnMFMErr       EQU         -400                      ; gcr format on high density media error
  66.  
  67. ;__________________________________________________
  68. ; File Manager errors
  69.  
  70. dirFulErr         EQU         -33                       ; directory full
  71. dskFulErr         EQU         -34                       ; disk full
  72. nsvErr            EQU         -35                       ; no such volume
  73. ioErr             EQU         -36                       ; I/O error (bummers)
  74. bdNamErr          EQU         -37                       ; bad file name or volume name (perhaps zero length)
  75. fnOpnErr          EQU         -38                       ; file not open
  76. eofErr            EQU         -39                       ; logical end-of-file reached during read operation
  77. posErr            EQU         -40                       ; attempt to position to before start of file (r/w)
  78. mFulErr           EQU         -41                       ; memory full (open) or file won’t fit (load)
  79. tmfoErr           EQU         -42                       ; too many files open
  80. fnfErr            EQU         -43                       ; file not found
  81. wPrErr            EQU         -44                       ; diskette is write protected
  82. fLckdErr          EQU         -45                       ; file is locked
  83. vLckdErr          EQU         -46                       ; volume is locked
  84. fBsyErr           EQU         -47                       ; file is busy (delete)
  85. dupFNErr          EQU         -48                       ; duplicate filename (rename)
  86. opWrErr           EQU         -49                       ; file already open with with write permission
  87. rfNumErr          EQU         -51                       ; path reference number specifies nonexistent access path
  88. gfpErr            EQU         -52                       ; get file position error
  89. volOffLinErr      EQU         -53                       ; volume not on line error (was Ejected)
  90. permErr           EQU         -54                       ; permissions error (on file open) / Attempt to open locked file for writing
  91. volOnLinErr       EQU         -55                       ; drive volume already on-line at MountVol
  92. nsDrvErr          EQU         -56                       ; no such drive (tried to mount a bad drive num)
  93. noMacDskErr       EQU         -57                       ; not a mac diskette (sig bytes are wrong)
  94. extFSErr          EQU         -58                       ; volume in question belongs to an external fs
  95. fsRnErr           EQU         -59                       ; file system internal error:
  96.                                                         ;    during rename the old entry was deleted but could
  97.                                                         ;    not be restored
  98. badMDBErr         EQU         -60                       ; bad master directory block: must reinitialize volume
  99. wrPermErr         EQU         -61                       ; Read/write permission doesn’t allow writing
  100.  
  101. ; errors introduced with HFS
  102.  
  103. dirNFErr          EQU         -120                      ; directory not found
  104. tmwdoErr          EQU         -121                      ; no free WDCB available
  105. badMovErr         EQU         -122                      ; move into offspring error
  106. wrgVolTypErr      EQU         -123                      ; wrong volume type error
  107. volGoneErr        EQU         -124                      ; server volume has been disconnected
  108.  
  109. ; error codes -1300 to -1500 reserved for HFS calls                                 <1.7 DNF>
  110.  
  111. fidNotFound       EQU         -1300                     ; no file thread exists         <1.7 DNF>
  112. fidExists         EQU         -1301                     ; file id already exists        <1.7 DNF>
  113. notAFileErr       EQU         -1302                     ; directory specified            <1.7 DNF>
  114. diffVolErr        EQU         -1303                     ; files  on different volumes    <1.8 EKN>
  115. catChangedErr     EQU         -1304                     ; catalog has been modified     <2.2 DNF>
  116. desktopDamagedErr    EQU        -1305                    ; desktop database files are corrupted
  117. sameFileErr        EQU            -1306                    ; can't exachange a file with itself
  118. badFidErr         EQU         -1307                     ; file id is dangling or doesn't <20 KST>
  119.                                                     ; match with the file number
  120. notARemountErr    EQU            -1308                    ; when _Mount allows only remounts and doesn't
  121.                                                     ; get one. <27>
  122.  
  123. ;__________________________________________________
  124. ; SysEnvirons errors
  125.  
  126. envNotPresent     EQU         -5500                     ; returned by glue environment not present.
  127. envBadVers        EQU         -5501                     ; Version non-positive , bad version number
  128. envVersTooBig     EQU         -5502                     ; Version bigger than call can handle
  129.  
  130. ;__________________________________________________
  131. ; Font Manager errors
  132.  
  133. fontDecError      EQU         -64                       ; error during font declaration
  134. fontNotDeclared EQU         -65                       ; font not declared
  135. fontSubErr        EQU         -66                       ; font substitution occured
  136. fontNotOutlineErr EQU        -32615                    ; bitmap font passed to routine that does outlines only
  137.  
  138. ;__________________________________________________
  139. ; Disk Driver errors
  140.  
  141. firstDskErr       EQU         -84
  142. lastDskErr        EQU         -64
  143. noDriveErr        EQU         -64                       ; drive not installed
  144. offLinErr         EQU         -65                       ; r/w requested for an off-line drive
  145. noNybErr          EQU         -66                       ; couldn’t find 5 nybbles in 200 tries
  146. noAdrMkErr        EQU         -67                       ; couldn’t find valid addr mark
  147. dataVerErr        EQU         -68                       ; read verify compare failed
  148. badCksmErr        EQU         -69                       ; addr mark checksum didn’t check
  149. badBtSlpErr       EQU         -70                       ; bad addr mark bit slip nibbles
  150. noDtaMkErr        EQU         -71                       ; couldn’t find a data mark header
  151. badDCksum         EQU         -72                       ; bad data mark checksum
  152. badDBtSlp         EQU         -73                       ; bad data mark bit slip nibbles
  153. wrUnderrun        EQU         -74                       ; write underrun occurred
  154. cantStepErr       EQU         -75                       ; step handshake failed
  155. tk0BadErr         EQU         -76                       ; track 0 detect doesn’t change
  156. initIWMErr        EQU         -77                       ; unable to initialize IWM
  157. twoSideErr        EQU         -78                       ; tried to read 2nd side on a 1-sided drive
  158. spdAdjErr         EQU         -79                       ; unable to correctly adjust disk speed
  159. seekErr           EQU         -80                       ; track number wrong on address mark
  160. sectNFErr         EQU         -81                       ; sector number never found on a track
  161. fmt1Err           EQU         -82                       ; can’t find sector 0 after track format
  162. fmt2Err           EQU         -83                       ; can’t get enough sync
  163. verErr            EQU         -84                       ; track failed to verify
  164.  
  165. ;__________________________________________________
  166. ; PRAM/Clock errors
  167.  
  168. clkRdErr          EQU         -85                       ; unable to read same clock value twice
  169. clkWrErr          EQU         -86                       ; time written did not verify
  170. prWrErr           EQU         -87                       ; parameter ram written didn’t read-verify
  171. prInitErr         EQU         -88                       ; InitUtil found the parameter ram uninitialized
  172.  
  173. ;__________________________________________________
  174. ; Serial Driver errors
  175.  
  176. rcvrErr           EQU         -89                       ; SCC receiver error (framing, parity, OR)
  177. breakRecd         EQU         -90                       ; Break received (SCC)
  178.  
  179. ;__________________________________________________
  180. ; Power Manager Errors
  181.  
  182. pmBusyErr         EQU         -13000                    ; Power Mgr never ready to start handshake
  183. pmReplyTOErr      EQU         -13001                    ; Timed out waiting for reply
  184. pmSendStartErr    EQU         -13002                    ; during send, pmgr did not start hs
  185. pmSendEndErr      EQU         -13003                    ; during send, pmgr did not finish hs
  186. pmRecvStartErr    EQU         -13004                    ; during receive, pmgr did not start hs
  187. pmRecvEndErr      EQU         -13005                    ; during receive, pmgr did not finish hs
  188.                                                         ; configured for this connection)
  189. ;__________________________________________________
  190. ; Scrap Manager errors
  191.  
  192. noScrapErr        EQU         -100                      ; No scrap exists error
  193. noTypeErr         EQU         -102                      ; No object of that type in scrap
  194.  
  195. ;__________________________________________________
  196. ; Memory Manager errors
  197.  
  198. memROZWarn        EQU         -99                       ; soft error in ROZ
  199. memROZError       EQU         -99                       ; hard error in ROZ
  200. memROZErr         EQU         -99                       ; hard error in ROZ
  201. memFullErr        EQU         -108                      ; Not enough room in heap zone
  202. nilHandleErr      EQU         -109                      ; Handle was NIL in HandleZone or other;
  203. memWZErr          EQU         -111                      ; WhichZone failed (applied to free block);
  204. memPurErr         EQU         -112                      ; trying to purge a locked or non-purgeable block;
  205. memAdrErr         EQU         -110                      ; address was odd, or out of range;
  206. memAZErr          EQU         -113                      ; Address in zone check failed;
  207. memPCErr          EQU         -114                      ; Pointer Check failed;
  208. memBCErr          EQU         -115                      ; Block Check failed;
  209. memSCErr          EQU         -116                      ; Size Check failed;
  210. memLockedErr      EQU         -117                      ; trying to move a locked block (MoveHHi)
  211.  
  212. ;__________________________________________________
  213. ; Resource Manager errors
  214.  
  215. resNotFound       EQU         -192                      ; resource not found
  216. resFNotFound      EQU         -193                      ; resource file not found
  217. addResFailed      EQU         -194                      ; AddResource failed
  218. addRefFailed      EQU         -195                      ; AddReference failed
  219. rmvResFailed      EQU         -196                      ; RmveResource failed
  220. rmvRefFailed      EQU         -197                      ; RmveReference failed
  221. resAttrErr        EQU         -198                      ; attribute inconsistent with operation
  222. mapReadErr        EQU         -199                      ; map inconsistent with operation
  223. CantDecompress    EQU            -186                    ; resource bent ("the bends") - can't decompress a compressed resource
  224. badExtResource    EQU            -185                    ; extended resource has a bad format.
  225.  
  226. ;__________________________________________________
  227. ; Event Manager errors
  228.  
  229. evtNotEnb         EQU         1                         ; event not enabled at PostEvent
  230.  
  231. ;__________________________________________________
  232. ; QuickDraw errors
  233.  
  234. noMemForPictPlaybackErr EQU            -145
  235. rgnTooBigError             EQU            -147
  236. pixMapTooDeepErr        EQU            -148
  237. nsStackErr                 EQU            -149            ; insufficient stack
  238. cMatchErr                 EQU         -150              ; Color2Index failed to find an index
  239. cTempMemErr               EQU         -151              ; failed to allocate memory for temporary structures
  240. cNoMemErr                 EQU         -152              ; failed to allocate memory for structure
  241. cRangeErr                 EQU         -153              ; range error on color table request
  242. cProtectErr               EQU         -154              ; colorTable entry protection violation
  243. cDevErr                   EQU         -155              ; invalid type of graphics device
  244. cResErr                   EQU         -156              ; invalid resolution for MakeITable
  245. rgnTooBigErr              EQU         -500              ; region too big error
  246. updPixMemErr              EQU         -125              ; insufficient memory to update a pixmap
  247.  
  248. ;__________________________________________________
  249. ; Picture Utilities errors
  250.  
  251. pictInfoVersionErr        EQU  -11000                    ;wrong version of the PictInfo structure
  252. pictInfoIDErr            EQU  -11001                    ;the internal consistancy check for the PictInfoID is wrong
  253. pictInfoVerbErr            EQU  -11002                    ;the passed verb was invalid
  254. cantLoadPickMethodErr    EQU  -11003                    ;unable to load the custom pick proc
  255. colorsRequestedErr        EQU  -11004                    ;the number of colors requested was illegal
  256. pictureDataErr            EQU  -11005                    ;the picture data was invalid
  257.  
  258. ;__________________________________________________
  259. ; Sound Manager errors
  260.  
  261. noHardware                EQU    noHardwareErr             ; *** obsolete spelling
  262. notEnoughHardware         EQU notEnoughHardwareErr      ; *** obsolete spelling
  263. queueFull                 EQU -203
  264. resProblem                EQU -204
  265. badChannel                EQU -205
  266. badFormat                 EQU -206
  267. notEnoughBufferSpace     EQU -207                    ; could not allocate enough memory
  268. badFileFormat               EQU -208                    ; was not type AIFF or was of bad format,corrupt
  269. channelBusy               EQU -209                    ; the channel is being used for a PFD already
  270. buffersTooSmall           EQU -210                    ; can not operate in the memory allowed
  271. channelNotBusy               EQU -211
  272. noMoreRealTime              EQU -212                    ; not enough CPU cycles left to add another task
  273. siNoSoundInHardware        EQU -220
  274. siBadSoundInDevice        EQU -221                    ; invalid index passed to SoundInGetIndexedDevice
  275. siNoBufferSpecified        EQU -222                    ; returned by synchronous SPBRecord if nil buffer passed
  276. siInvalidCompression    EQU -223                    ; invalid compression type
  277. siHardDriveTooSlow        EQU -224                    ; hard drive too slow to record to disk
  278. siInvalidSampleRate        EQU -225                    ; invalid sample rate
  279. siInvalidSampleSize        EQU -226                    ; invalid sample size
  280. siDeviceBusyErr            EQU -227                    ; input device already in use
  281. siBadDeviceName            EQU -228                    ; input device could not be opened
  282. siBadRefNum                EQU -229                    ; invalid input device reference number
  283. siInputDeviceErr        EQU -230                    ; input device hardware failure
  284. siUnknownInfoType        EQU -231                    ; invalid info type selector (returned by driver)
  285. siUnknownQuality        EQU -232                    ; invalid quality selector (returned by driver)
  286.  
  287. ;__________________________________________________
  288. ; Notification Manager errors
  289.  
  290. nmTypErr          EQU         -299                      ; wrong queue type
  291.  
  292. ;__________________________________________________
  293. ; Slot Manager errors *** Yuck! These use positive numbers! ***
  294.  
  295. siInitSDTblErr    EQU         1                         ; slot int dispatch table could not be initialized.
  296. siInitVBLQsErr    EQU         2                         ; VBL queues for all slots could not be initialized.
  297. siInitSPTblErr    EQU         3                         ; slot priority table could not be initialized.
  298. sdmJTInitErr      EQU         10                        ; SDM Jump Table could not be initialized.
  299. sdmInitErr        EQU         11                        ; SDM could not be initialized.
  300. sdmSRTInitErr     EQU         12                        ; Slot Resource Table could not be initialized.
  301. sdmPRAMInitErr    EQU         13                        ; Slot PRAM could not be initialized.
  302. sdmPriInitErr     EQU         14                        ; cards could not be initialized.
  303.  
  304. ;---The following errors may be generated during system Init. If they are,
  305. ; they will be logged into the sInfo array and returned each time a call
  306. ; to the slot manager is made (for the card wich generated the error).
  307.  
  308. ; Errors specific to the Start Mgr
  309.  
  310. smSDMInitErr      EQU         -290                      ; SDM could not be initialized.
  311. smSRTInitErr      EQU         -291                      ; Slot Resource Table could not be initialized.
  312. smPRAMInitErr     EQU         -292                      ; Slot Resource Table could not be initialized.
  313. smPriInitErr      EQU         -293                      ; cards could not be initialized.
  314. smEmptySlot       EQU         -300                      ; No card in slot
  315. smCRCFail         EQU         -301                      ; CRC check failed for declaration data
  316. smFormatErr       EQU         -302                      ; FHeader Format is not Apple's
  317. smRevisionErr     EQU         -303                      ; Wrong revison level
  318. smNoDir           EQU         -304                      ; Directory offset is Nil
  319. smDisabledSlot    EQU         -305                      ; This slot is disabled (-305 use to be smLWTstBad)        <12>
  320. smNosInfoArray    EQU         -306                      ; No sInfoArray. Memory Mgr error.
  321. smResrvErr        EQU         -307                      ; Fatal reserved error. Resreved field <> 0.
  322. smUnExBusErr      EQU         -308                      ; Unexpected BusError
  323. smBLFieldBad      EQU         -309                      ; ByteLanes field was bad.
  324. smFHBlockRdErr    EQU         -310                      ; Error occured during _sGetFHeader.
  325. smFHBlkDispErr    EQU         -311                      ; Error occured during _sDisposePtr (Dispose of FHeader block).
  326. smDisposePErr     EQU         -312                      ; _DisposePointer error
  327. smNoBoardSRsrc    EQU         -313                      ; No Board sResource.
  328. smGetPRErr        EQU         -314                      ; Error occured during _sGetPRAMRec (See SIMStatus).
  329. smNoBoardId       EQU         -315                      ; No Board Id.
  330. smInitStatVErr    EQU         -316                      ; The InitStatusV field was negative after primary or secondary init.
  331. smInitTblVErr     EQU         -317                      ; An error occured while trying to initialize the Slot Resource Table.
  332. smNoJmpTbl        EQU         -318                      ; SDM jump table could not be created
  333. smBadBoardId      EQU         -319                      ; BoardId was wrong, re-init the PRAM record
  334. smBusErrTO        EQU         -320                      ; BusError timeout
  335.  
  336. ;---The following errors are for primary or secondary init code.  The errors are logged in the
  337. ; vendor status field of the sInfo record.    Normally the vendor error is not Apple's concern,
  338. ; but a special error is needed to patch secondary inits.
  339.  
  340. svTempDisable     EQU         -32768                    ; temporarily disable card but run primary init
  341. svDisabled        EQU         -32640                    ; reserve range -32640 to -32768 for Apple temp disables
  342.  
  343. ;---The following errors may be generated at any time after system Init and will not
  344. ; be logged into the sInfo array.
  345.  
  346. smBadRefId        EQU         -330                      ; Reference Id not found in List
  347. smBadsList        EQU         -331                      ; Bad sList: Id1 < Id2 < Id3 ... format is not followed.
  348. smReservedErr     EQU         -332                      ; Reserved field not zero
  349. smCodeRevErr      EQU         -333                      ; Code revision is wrong
  350. smCPUErr          EQU         -334                      ; Code revision is wrong
  351. smsPointerNil     EQU         -335                      ; LPointer is nil {From sOffsetData. If this error occurs, check sInfo rec for more information.}
  352. smNilsBlockErr    EQU         -336                      ; Nil sBlock error {Dont allocate and try to use a nil sBlock}
  353. smSlotOOBErr      EQU         -337                      ; Slot out of bounds error
  354. smSelOOBErr       EQU         -338                      ; Selector out of bounds error
  355. smNewPErr         EQU         -339                      ; _NewPtr error
  356. smBlkMoveErr      EQU         -340                      ; _BlockMove error
  357. smCkStatusErr     EQU         -341                      ; Status of slot = fail.
  358. smGetDrvrNamErr EQU         -342                      ; Error occured during _sGetDrvrName.
  359. smDisDrvrNamErr EQU         -343                      ; Error occured during _sDisDrvrName.
  360. smNoMoresRsrcs    EQU         -344                      ; No more sResources
  361. smsGetDrvrErr     EQU         -345                      ; Error occurred during _sGetDriver.
  362. smBadsPtrErr      EQU         -346                      ; Bad pointer was passed to sCalcsPointer
  363. smByteLanesErr    EQU         -347                      ; NumByteLanes was determined to be zero.
  364. smOffsetErr       EQU         -348                      ; Offset was too big (temporary error, should be fixed)
  365. smNoGoodOpens     EQU         -349                      ; No opens were successfull in the loop.
  366. smSRTOvrFlErr     EQU         -350                      ; SRT over flow.
  367. smRecNotFnd       EQU         -351                      ; Record not found in the SRT.
  368.  
  369. ;__________________________________________________
  370. ; Edition Mgr errors
  371.  
  372. editionMgrInitErr         EQU    -450                    ; edition manager not inited by this app
  373. badSectionErr             EQU    -451                    ; not a valid SectionRecord
  374. notRegisteredSectionErr EQU    -452                    ; not a registered SectionRecord
  375. badEditionFileErr         EQU    -453                    ; edition file is corrupt
  376. badSubPartErr             EQU    -454                    ; can not use sub parts in this release
  377. multiplePublisherWrn     EQU    -460                    ; A Publisher is already registered for that container
  378. containerNotFoundWrn     EQU    -461                    ; could not find editionContainer at this time
  379. containerAlreadyOpenWrn EQU    -462                    ; container already opened by this section
  380. notThePublisherWrn         EQU -463                     ; not the publisher that last wrote to that container
  381.  
  382. ;__________________________________________________
  383. ; TextEdit errors
  384.  
  385. teScrapSizeErr    EQU         -501                      ; scrap item too big for text edit record
  386.  
  387. ;__________________________________________________
  388. ; other OS errors
  389.  
  390. hwParamErr         EQU         -502                    ; bad selector for _HWPriv <1.3>
  391.  
  392. ;__________________________________________________
  393. ; Process Manager errors
  394.  
  395. procNotFound        EQU        -600                    ; no eligible process with specified descriptor
  396. memFragErr            EQU        -601                    ; not enough room to launch app w/special requirements
  397. appModeErr            EQU        -602                    ; memory mode is 32-bit, but app not 32-bit clean
  398. protocolErr            EQU        -603                    ; app made module calls in improper order
  399. hardwareConfigErr    EQU        -604                    ; hardware configuration not correct for call
  400. appMemFullErr        EQU        -605                    ; application SIZE not big enough for launch
  401. appIsDaemon            EQU        -606                    ; app is BG-only, and launch flags disallow this
  402.  
  403. ;__________________________________________________
  404. ; MemoryDispatch errors
  405.  
  406. notEnoughMemoryErr    EQU        -620                    ; insufficient physical memory                <1.4>
  407. notHeldErr            EQU        -621                    ; specified range of memory is not held        <1.4>
  408. cannotMakeContiguousErr EQU    -622                    ; cannot make specified range contiguous    <1.4>
  409. notLockedErr        EQU        -623                    ; specified range of memory is not locked    <1.4>
  410. interruptsMaskedErr    EQU        -624                    ; don’t call with interrupts masked            <1.4>
  411. cannotDeferErr        EQU        -625                    ; unable to defer additional functions        <1.4>
  412.  
  413. ;__________________________________________________
  414. ; AppleTalk errors
  415.  
  416. ddpSktErr         EQU         -91                       ; error in socket number
  417. ddpLenErr         EQU         -92                       ; data length too big
  418. noBridgeErr       EQU         -93                       ; no network bridge for non-local send
  419. lapProtErr        EQU         -94                       ; error in attaching/detaching protocol
  420. excessCollsns     EQU         -95                       ; excessive collisions on write
  421. portInUse         EQU         -97                       ; driver Open error code (port is in use)
  422. portNotCf         EQU         -98                       ; driver Open error code (parameter RAM not
  423.  
  424. ; AppleTalk - NBP errors
  425.  
  426. nbpBuffOvr        EQU         -1024                     ; Buffer overflow in LookupName
  427. nbpNoConfirm      EQU         -1025                     ; Name not confirmed on ConfirmName
  428. nbpConfDiff       EQU         -1026                     ; Name confirmed at different socket
  429. nbpDuplicate      EQU         -1027                     ; Duplicate name exists already
  430. nbpNotFound       EQU         -1028                     ; Name not found on remove
  431. nbpNISErr         EQU         -1029                     ; Error trying to open the NIS
  432.  
  433. ; ASP errors (.XPP driver)
  434.  
  435. aspBadVersNum     EQU         -1066                     ; Server cannot support this ASP version
  436. aspBufTooSmall    EQU         -1067                     ; Buffer too small
  437. aspNoMoreSess     EQU         -1068                     ; No more sessions on server
  438. aspNoServers      EQU         -1069                     ; No servers at that address
  439. aspParamErr       EQU         -1070                     ; Parameter error
  440. aspServerBusy     EQU         -1071                     ; Server cannot open another session
  441. aspSessClosed     EQU         -1072                     ; Session closed
  442. aspSizeErr        EQU         -1073                     ; Command block too big
  443. aspTooMany        EQU         -1074                     ; Too many clients (server error)
  444. aspNoAck          EQU         -1075                     ; No ack on attention request (server err)
  445.  
  446. ;AppleTalk - ATP errors
  447.  
  448. reqFailed         EQU         -1096                     ; SendRequest failed: retry count exceeded
  449. tooManyReqs       EQU         -1097                     ; Too many concurrent requests
  450. tooManySkts       EQU         -1098                     ; Too many concurrent responding-sockets
  451. badATPSkt         EQU         -1099                     ; Bad ATP-responding socket
  452. badBuffNum        EQU         -1100                     ; Bad response buffer number specififed
  453. noRelErr          EQU         -1101                     ; No release received
  454. cbNotFound        EQU         -1102                     ; Control Block (TCB or RspCB) not found
  455. noSendResp        EQU         -1103                     ; AddResponse issued without SendResponse
  456. noDataArea        EQU         -1104                     ; No data area for request to MPP
  457. reqAborted        EQU         -1105                     ; SendRequest aborted by RelTCB
  458. buf2SmallErr      EQU         -3101                     ; buffer too small error
  459. noMPPErr          EQU         -3102                     ; no MPP error
  460. ckSumErr          EQU         -3103                     ; check sum error
  461. extractErr        EQU         -3104                     ; extraction error
  462. readQErr          EQU         -3105                     ; read queue error
  463. atpLenErr         EQU         -3106                     ; ATP length error
  464. atpBadRsp         EQU         -3107                     ; ATP bad response error
  465. recNotFnd         EQU         -3108                     ; Record not found
  466. sktClosedErr      EQU         -3109                     ; Socket closed error
  467.  
  468. ; AFP errors (.XPP driver)
  469.  
  470. afpAccessDenied    EQU         -5000                     ; AFP access denied
  471. afpAuthContinue    EQU         -5001                     ; AFP authorization continue
  472. afpBadUAM         EQU         -5002                     ; AFP bad UAM
  473. afpBadVersNum     EQU         -5003                     ; AFP bad version number
  474. afpBitmapErr      EQU         -5004                     ; AFP bit map error
  475. afpCantMove       EQU         -5005                     ; AFP can't move error
  476. afpDenyConflict    EQU         -5006                     ; AFP deny conflict
  477. afpDirNotEmpty    EQU         -5007                     ; AFP dir not empty
  478. afpDiskFull       EQU         -5008                     ; AFP disk full
  479. afpEofError       EQU         -5009                     ; AFP End-of-File error
  480. afpFileBusy       EQU         -5010                     ; AFP file busy
  481. afpFlatVol        EQU         -5011                     ; AFP flat volume
  482. afpItemNotFound    EQU         -5012                     ; AFP item not found
  483. afpLockErr        EQU         -5013                     ; AFP lock error
  484. afpMiscErr        EQU         -5014                     ; AFP misc error
  485. afpNoMoreLocks    EQU         -5015                     ; AFP no more locks
  486. afpNoServer       EQU         -5016                     ; AFP no server
  487. afpObjectExists    EQU         -5017                     ; AFP object already exists
  488. afpObjectNotFound EQU         -5018                     ; AFP object not found
  489. afpParmErr        EQU         -5019                     ; AFP parm error
  490. afpRangeNotLocked EQU         -5020                     ; AFP range not locked
  491. afpRangeOverlap    EQU         -5021                     ; AFP range overlap
  492. afpSessClosed     EQU         -5022                     ; AFP session closed
  493. afpUserNotAuth    EQU         -5023                     ; AFP user not authorized
  494. afpCallNotSupported EQU       -5024                     ; AFP call not supported
  495. afpObjectTypeErr  EQU         -5025                     ; AFP object type error
  496. afpTooManyFilesOpen EQU       -5026                     ; AFP too many files open
  497. afpServerGoingDown EQU        -5027                     ; AFP server going down
  498. afpCantRename     EQU         -5028                     ; AFP can't rename
  499. afpDirNotFound    EQU         -5029                     ; AFP directory not found
  500. afpIconTypeError  EQU         -5030                     ; AFP icon type error
  501. afpVolLocked      EQU         -5031                     ; Volume is Read-Only
  502. afpObjectLocked    EQU         -5032                     ; Object is M/R/D/W inhibited
  503. afpContainsSharedErr EQU     -5033                     ;$FFFFEC57 the folder being shared contains a shared folder }
  504. afpIDNotFound    EQU         -5034                     ;$FFFFEC56
  505. afpIDExists         EQU         -5035                     ;$FFFFEC55
  506. afpDiffVolErr    EQU         -5036                     ;$FFFFEC54
  507. afpCatalogChanged EQU         -5037                     ;$FFFFEC53
  508. afpSameObjectErr EQU         -5038                     ;$FFFFEC52
  509. afpBadIDErr         EQU         -5039                     ;$FFFFEC51
  510. afpPwdSameErr    EQU         -5040                     ;$FFFFEC50 someone tried to change their password to the same password on a mantadory password change
  511. afpPwdTooShortErr EQU         -5041                     ;$FFFFEC4F the password being set is too short: there is a minimum length that must be met or exceeded
  512. afpPwdExpiredErr EQU         -5042                     ;$FFFFEC4E the password being used is too old: this requires the user to change the password before log-in can continue
  513. afpInsideSharedErr EQU         -5043                     ;$FFFFEC4D the folder being shared is inside a shared folder OR
  514.                                                       ;           the folder contains a shared folder and is being moved into a shared folder OR
  515.                                                     ;           the folder contains a shared folder and is being moved into the descendent of a shared folder.
  516. afpInsideTrashErr EQU         -5044                     ;$FFFFEC4C the folder being shared is inside the trash folder OR
  517.                                                     ;           the shared folder is being moved into the trash folder OR
  518.                                                     ;           the folder is being moved to the trash and it contains a shared folder
  519.  
  520. ;__________________________________________________
  521. ; PPC errors
  522.  
  523. notInitErr        EQU         -900                    ; PPCToolBox not initialized
  524.  
  525. nameTypeErr        EQU         -902                    ; Invalid or inappropriate locationKindSelector in locationName
  526. noPortErr        EQU         -903                    ; Unable to open port or bad portRefNum
  527. noGlobalsErr    EQU         -904                    ; The system is hosed, better re-boot
  528. localOnlyErr    EQU         -905                    ; Network activity is currently disabled
  529. destPortErr        EQU         -906                    ; Port does not exist at destination
  530. sessTableErr    EQU         -907                    ; Out of session tables, try again later
  531. noSessionErr    EQU         -908                    ; Invalid session reference number
  532. badReqErr        EQU         -909                    ; bad parameter or invalid state for operation
  533. portNameExistsErr EQU         -910                    ; port is already open (perhaps in another app)
  534. noUserNameErr    EQU         -911                    ; user name unknown on destination machine
  535. userRejectErr    EQU         -912                    ; Destination rejected the session request
  536. noMachineNameErr EQU         -913                    ; user hasn't named his Macintosh in the Network Setup Control Pannel
  537. noToolboxNameErr EQU         -914                    ; A system resource is missing, not too likely
  538. noResponseErr    EQU         -915                    ; unable to contact destination
  539. portClosedErr    EQU         -916                    ; port was closed
  540. sessClosedErr    EQU         -917                    ; session was closed
  541.  
  542. badPortNameErr    EQU         -919                    ; PPCPortRec malformed
  543.  
  544. noDefaultUserErr EQU         -922                    ; user hasn't typed in owners name in Network Setup Control Pannel
  545. notLoggedInErr    EQU         -923                    ; The default userRefNum does not yet exist
  546. noUserRefErr    EQU         -924                    ; unable to create a new userRefNum
  547. networkErr        EQU         -925                    ; An error has occured in the network, not too likely
  548. noInformErr        EQU         -926                    ; PPCStart failed because destination did not have inform pending
  549. authFailErr        EQU         -927                    ; unable to authenticate user at destination
  550. noUserRecErr    EQU         -928                    ; Invalid user reference number
  551.  
  552. badServiceMethodErr EQU     -930                    ; illegal service type, or not supported
  553. badLocNameErr    EQU         -931                    ; location name malformed
  554. guestNotAllowedErr EQU         -932                    ; destination port requires authentication
  555.  
  556. ;____________________________________________________________________________________________________
  557.  
  558.                   IF          wholeErrors THEN
  559.  
  560. ;__________________________________________________
  561. ; Serial Driver error masks
  562.  
  563. swOverrunErr      EQU         1
  564. parityErr         EQU         16
  565. hwOverrunErr      EQU         32
  566. framingErr        EQU         64
  567.  
  568. ;____________________________________________________________________________________________________
  569. ;
  570. ; These are System Errors. They use a different numbering space from the OS errors above, so there
  571. ; can be a System Error and an OS error with the same number. System Errors are intercepted by
  572. ; MacsBug or displayed by the System Error Handler, which uses a DSAT resource to determine how to
  573. ; display them. Some errors are used to put up dialogs with the System Error Handler, rather than to
  574. ; report an error. These are not intercepted by MacsBug. MacsBug’s rule is to stop any system errors
  575. ; with positive numbers, except for errors 30 and 42. Older versions of MacsBug (6.2d4 and older)
  576. ; used a different rule.
  577.  
  578. ;__________________________________________________
  579. ; System Errors that should cause MacsBug to stop (0-29, 31-41, 43-16383)
  580. ;    and look good in the System Error alert because they are in the range 0-29, 31-41, or 43-99
  581.  
  582. dsBusError        EQU         1                         ; bus error
  583. dsAddressErr      EQU         2                         ; address error
  584. dsIllInstErr      EQU         3                         ; illegal instruction error
  585. dsZeroDivErr      EQU         4                         ; zero divide error
  586. dsChkErr          EQU         5                         ; check trap error
  587. dsOvflowErr       EQU         6                         ; overflow trap error
  588. dsPrivErr         EQU         7                         ; privilege violation error
  589. dsTraceErr        EQU         8                         ; trace mode error
  590. dsLineAErr        EQU         9                         ; line 1010 trap error
  591. dsLineFErr        EQU         10                        ; line 1111 trap error
  592. dsMiscErr         EQU         11                        ; miscellaneous hardware exception error
  593. dsCoreErr         EQU         12                        ; unimplemented core routine error
  594. dsIrqErr          EQU         13                        ; uninstalled interrupt error
  595. dsIOCoreErr       EQU         14                        ; I/O core error
  596. dsLoadErr         EQU         15                        ; Segment Loader error
  597. dsFPErr           EQU         16                        ; floating point error
  598. dsNoPackErr       EQU         17                        ; package 0 not present
  599. dsNoPk1           EQU         18                        ; package 1 not present
  600. dsNoPk2           EQU         19                        ; package 2 not present
  601. dsNoPk3           EQU         20                        ; package 3 not present
  602. dsNoPk4           EQU         21                        ; package 4 not present
  603. dsNoPk5           EQU         22                        ; package 5 not present
  604. dsNoPk6           EQU         23                        ; package 6 not present
  605. dsNoPk7           EQU         24                        ; package 7 not present
  606. dsMemFullErr      EQU         25                        ; out of memory
  607. dsBadLaunch       EQU         26                        ; can’t launch file (CODE 0 missing or ...)
  608. dsFSErr           EQU         27                        ; file system map has been trashed
  609. dsStknHeap        EQU         28                        ; stack has moved into application heap
  610. negZcbFreeErr     EQU         33                        ; zcbFree has gone negative
  611. dsFinderErr       EQU         41                        ; can’t load the Finder
  612. dsBadSlotInt      EQU         51                        ; unserviceable slot interrupt
  613. dsBadSANEOpcode    EQU         81                        ; bad opcode given to SANE
  614. dsBadPatchHeader EQU        83                        ; SetTrapAddress saw the “come-from” header
  615. menuPrgErr        EQU         84                        ; a menu was purged while in use
  616. dsMBarNFnd        EQU         85                        ; could not load MBDF
  617. dsHMenuFindErr    EQU         86                        ; could not find HMenu’s parent in MenuKey
  618. dsWDEFNotFound    EQU            87                        ; could not load WDEF
  619. dsCDEFNotFound    EQU            88                        ; could not load CDEF
  620. dsMDEFNotFound    EQU            89                        ; count not load MDEF
  621. dsNoFPU               EQU         90                       ; an FPU instruction was executed and the machine doesn’t have one
  622.  
  623. ;__________________________________________________
  624. ; System Errors that should cause MacsBug to stop (0-29, 31-41, 43-16383)
  625. ;    these look good in the System Error alert because of special templates in the DSAT
  626.  
  627. dsNoPatch         EQU         98                        ; can’t load patch for particular model
  628. dsBadPatch        EQU         99                        ; can’t load patch resource
  629. dsParityErr       EQU         101                       ; memory parity error                <1.5><1.6>
  630. dsOldSystem       EQU         102                       ; System is too old for this ROM    <2.0>
  631. ds32BitMode       EQU         103                       ; booting in 32-bit on a 24-bit sys <2.0>
  632. dsNeedToWriteBootBlocks    EQU    104                        ; need to write new boot blocks
  633. dsNotEnoughRAMToBoot    EQU    105                        ; must have at least 1.5MB of RAM to boot 7.0
  634.  
  635. ;__________________________________________________
  636. ; System Errors that should not cause MacsBug to stop (30, 42, 16384-32767)
  637. ;    these all have special templates in the DSAT
  638. ;    if you need to make new errors of this type, use numbers from 20000 up.
  639.  
  640. dsReinsert        EQU         30                        ; request user to reinsert off-line volume
  641.  
  642. shutDownAlert          EQU     42                        ; tell the user he can shut down his machine
  643. dsShutDownOrRestart     EQU       20000                     ; user choice between ShutDown and Restart
  644. dsSwitchOffOrRestart EQU      20001                     ; user choice between switching off and Restart
  645. dsForcedQuit         EQU    20002                    ; allow the user to ExitToShell, return if Cancel
  646.  
  647. ;__________________________________________________
  648. ; System Errors that are used after MacsBug is loaded to put up dialogs
  649. ;    since these should not cause MacsBug to stop, they must be in the range (30, 42, 16384-32767)
  650. ;    negative numbers add to an existing dialog without putting up a whole new dialog
  651.  
  652. dsMacsBugInstalled         EQU        -10                   ; say “MacsBug Installed”
  653. dsDisassemblerInstalled    EQU        -11                   ; say “Disassembler Installed”
  654. dsExtensionsDisabled    EQU        -13                    ; say “Extensions Disabled”
  655.  
  656. ;__________________________________________________
  657. ; System Errors that are used before MacsBug is loaded to put up dialogs
  658. ;    MacsBug does not have to special-case these, since it is not loaded yet!
  659. ;    negative numbers add to an existing dialog without putting up a whole new dialog
  660.  
  661. dsGreeting        EQU         40                        ; welcome to Macintosh greeting
  662.  
  663. ;__________________________________________________
  664. ; System Errors that are never actually generated
  665. ;    *** do not pass any of these to SysErr ***
  666.  
  667. dsSysErr          EQU         32767                     ; catch-all error used in DSAT
  668.  
  669. ;__________________________________________________
  670. ; old names here for compatibility’s sake
  671.  
  672. WDEFNFnd        EQU         dsWDEFNotFound
  673. CDEFNFnd        EQU         dsCDEFNotFound
  674.  
  675. ;__________________________________________________
  676. ; obsolete System Errors that are no longer used, but I don’t have the guts to remove from this file
  677.  
  678. dsNotThe1         EQU         31                        ; not the disk I wanted
  679. dsBadStartupDisk  EQU         42                        ; unable to mount boot volume (sad Mac only)
  680. dsSystemFileErr   EQU         43                        ; can’t find System file to open (sad Mac only)
  681. dsHD20Installed   EQU         -12                       ; say “HD20 Startup”
  682. mBarNFnd          EQU         -126                      ; *** replaced by dsMBarNFnd
  683. hMenuFindErr      EQU         -127                      ; *** replaced by dsHMenuFindErr
  684.  
  685. ;__________________________________________________
  686. ; System Errors
  687.  
  688. userBreak         EQU         -490                      ; debugger break
  689. strUserBreak      EQU         -491                      ; debugger break; display string on stack
  690. exUserBreak       EQU         -492                      ; debugger break; debugger commands on stack
  691.  
  692. ;____________________________________________________________________________________________________
  693.  
  694.                   ENDIF
  695.  
  696. ;____________________________________________________________________________________________________
  697. ; obsolete errors that are no longer used, but I don’t have the guts to remove from this file
  698.  
  699. selectorErr        EQU            paramErr                ; bad selector, for selector-based traps
  700.  
  701. ;____________________________________________________________________________________________________
  702.  
  703.     ENDIF    ; ...already included
  704.